package com.party.core.model.member;

import com.party.core.model.BaseModel;

/**
 * @author： yifeng
 * @description： 套餐使用控制
 * @date：Created in  2017/12/05 下午 16:36
 **/
public class PackageCount extends BaseModel {
    private Integer totalNum; // 累计总数量
    private Integer useNum; // 累计使用数量
    private Integer tempTotalNum; // 充值时的总数 + 剩余数量 = 可用数量
    private Integer warnNum; // 预警数字百分比
    private Integer excessNum; // 使用超出数字
    private Integer isOpen; // 收费控制开关 1：开 2：关
    private Integer isAllowExcess; // 是否允许超出
    private String memberId; // 用户id
    private String type; // 类型 ACTIVITY ZC_ACTIVITY ARTICLE GOODS PUSH_SMS PUSH_EMAIL
    private Integer isWarned; // 是否预警过

    private Integer quantity; // 充值数量

    public static final String SMS_WARN_NUM_DEFAULT = "smsWarnNumDefault"; // 系统配置中-短信预警默认配置
    public static final String SMS_EXCESS_NUM_DEFAULT = "smsExcessNumDefault"; // 系统配置中-短信使用超出默认配置

    public PackageCount() {
    }

    public PackageCount(String memberId, String type) {
        this.memberId = memberId;
        this.type = type;
    }

    public Integer getTotalNum() {
        return null == totalNum ? 0 : totalNum;
    }

    public void setTotalNum(Integer totalNum) {
        this.totalNum = totalNum;
    }

    public Integer getUseNum() {
        return null == useNum ? 0 : useNum;
    }

    public void setUseNum(Integer useNum) {
        this.useNum = useNum;
    }

    public Integer getWarnNum() {
        return null == warnNum ? 0 : warnNum;
    }

    public void setWarnNum(Integer warnNum) {
        this.warnNum = warnNum;
    }

    public Integer getExcessNum() {
        return null == excessNum ? 0 : excessNum;
    }

    public void setExcessNum(Integer excessNum) {
        this.excessNum = excessNum;
    }

    public Integer getIsOpen() {
        return null == isOpen ? 2 : isOpen;
    }

    public void setIsOpen(Integer isOpen) {
        this.isOpen = isOpen;
    }

    public Integer getTempTotalNum() {
        return null == tempTotalNum ? 0 : tempTotalNum;
    }

    public void setTempTotalNum(Integer tempTotalNum) {
        this.tempTotalNum = tempTotalNum;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Integer getIsWarned() {
        return isWarned;
    }

    public void setIsWarned(Integer isWarned) {
        this.isWarned = isWarned;
    }

    public Integer getIsAllowExcess() {
        return null == isAllowExcess ? 2 : isAllowExcess;
    }

    public void setIsAllowExcess(Integer isAllowExcess) {
        this.isAllowExcess = isAllowExcess;
    }
}
